package com.langfeiyes.pattern.proxy.staticproxy;

public class App {

    public static void main(String[] args) {
        System.out.println("-----真实对象执行----");
        RealSubject subject = new RealSubject();
        subject.request();

        System.out.println("-----代理对象执行----");
        Proxy proxy = new Proxy(subject);
        proxy.request();

    }
}
